package org.lovelandhs.robotics.y2010;

import edu.wpi.first.wpilibj.Solenoid;

/**
 *
 * @author Robotics
 */
public class Kicker {

	public static final int SLOT = 8;

	private Solenoid in;
	private Solenoid out;

	public Kicker(int inChannel, int outChannel) {
		in = new Solenoid(SLOT, inChannel);
		out = new Solenoid(SLOT, outChannel);
	}

	public void push() {
		if (out.get()) {
			return;
		}

		out.set(true);

		if (in.get()) {
			in.set(false);
		}
	}

	public void retract() {
		if (in.get()) {
			return;
		}

		in.set(true);

		if (out.get()) {
			out.set(false);
		}
	}

}
